﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
using KNXFramework.KNXObjects;

namespace KNXService
{
    [DataContract]
    public class KNXObject
    {
        string m_Id;

        [DataMember]
        public string Id
        {
            get { return m_Id; }
            set { m_Id = value; }
        }
        string m_ObjectValue;

        [DataMember]
        public string ObjectValue
        {
            get { return m_ObjectValue; }
            set { m_ObjectValue = value; }
        }
        public KNXObject(KNXObjectBase objBase)
        {
            Id = objBase.ID;
            ObjectValue = objBase.GetValue();
        }
    }
}